package com.walllee.moudle.monitor;

import java.util.List;

import org.springframework.jdbc.core.BeanPropertyRowMapper;
import org.springframework.jdbc.core.support.JdbcDaoSupport;

public class MonitorDatabaseDAO extends JdbcDaoSupport{
	private static final String SELECTSQL = "SELECT * FROM OP_MONITOR_DATABASE" ;
	
	@SuppressWarnings("unchecked")
	public List<MonitorDataBase> getAllMonitorDataBase(){
		return this.getJdbcTemplate().query( SELECTSQL , new BeanPropertyRowMapper(MonitorDataBase.class) ) ;
	}
}
